﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KWT.DRG_DIP.PO.Settlement
{
    /// <summary>
    /// 医保结算清单（住院诊疗信息）
    /// </summary>
    public class List_DiagInfo
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public string DIID { get; set; }
        /// <summary>
        /// 清单流水号
        /// </summary>
        public string ListID { get; set; }
        /// <summary>
        /// 住院医疗类型
        /// </summary>
        public int MedicalType { get; set; }
        /// <summary>
        /// 入院途径
        /// </summary>
        public int Way { get; set; }
        /// <summary>
        /// 治疗类型
        /// </summary>
        public string HealType { get; set; }
        /// <summary>
        /// 住院次数
        /// </summary>
        public int InCount { get; set; }
        /// <summary>
        /// 入院时间
        /// </summary>
        public DateTime InTime { get; set; }
        /// <summary>
        /// 入院科别
        /// </summary>
        public string InCategory { get; set; }
        /// <summary>
        /// 入院病房
        /// </summary>
        public string InRoom { get; set; }
        /// <summary>
        /// 出院病房
        /// </summary>
        public string OutRoom { get; set; }
        /// <summary>
        /// 转科科别
        /// </summary>
        public string TurnCategory { get; set; }
        /// <summary>
        /// 出院时间
        /// </summary>
        public DateTime OutTime { get; set; }
        /// <summary>
        /// 出院科别
        /// </summary>
        public string OutCategory { get; set; }
        /// <summary>
        /// 实际住院（天）
        /// </summary>
        public int InDays { get; set; }
        /// <summary>
        /// 门诊诊断（西医）
        /// </summary>
        public string In_WM_Diag { get; set; }
        /// <summary>
        /// 疾病代码（西医）
        /// </summary>
        public string In_WM_Code { get; set; }
        /// <summary>
        /// 门诊诊断（中医）
        /// </summary>
        public string In_TCM_Diag { get; set; }
        /// <summary>
        /// 疾病代码（中医）
        /// </summary>
        public string In_TCM_Code { get; set; }
        /// <summary>
        /// 损伤，中毒的外部原因
        /// </summary>
        public string Poison { get; set; }
        /// <summary>
        /// 损伤，中毒的疾病编码
        /// </summary>
        public string PoisonCode { get; set; }
        /// <summary>
        /// 病理诊断
        /// </summary>

        public string Pathology { get; set; }
        /// <summary>
        /// 病理病种编码
        /// </summary>
        public string PathologyCode { get; set; }
        /// <summary>
        /// 病理号
        /// </summary>
        public string PathologyNo { get; set; }
        /// <summary>
        /// 药物过敏(1:无 2：有)
        /// </summary>
        public string React { get; set; }
        /// <summary>
        /// 过敏药物
        /// </summary>
        public string ReactName { get; set; }
        /// <summary>
        /// 死亡患者尸检（1：是 2：否）
        /// </summary>
        public string DeathCheck { get; set; }
        /// <summary>
        /// 血型
        /// </summary>
        public string BloodType { get; set; }
        /// <summary>
        /// Rh
        /// </summary>
        public string Rh { get; set; }
        /// <summary>
        /// 呼吸机使用天数
        /// </summary>
        public int UseDay { get; set; }
        /// <summary>
        /// 呼吸机使用小时数
        /// </summary>
        public int UseHour { get; set; }
        /// <summary>
        /// 呼吸机使用分钟数
        /// </summary>
        public int UseMinute { get; set; }
        /// <summary>
        /// 昏迷天数1
        /// </summary>
        public int StunDay1 { get; set; }
        /// <summary>
        /// 昏迷小时数1
        /// </summary>
        public int StunHour1 { get; set; }
        /// <summary>
        /// 昏迷分钟数1
        /// </summary>
        public int StunMinute1 { get; set; }
        /// <summary>
        /// 昏迷天数2
        /// </summary>
        public int StunDay2 { get; set; }
        /// <summary>
        /// 昏迷小时数2
        /// </summary>
        public int StunHour2 { get; set; }
        /// <summary>
        /// 昏迷分钟数2
        /// </summary>
        public int StunMinute2 { get; set; }
        /// <summary>
        /// 特级护理天数
        /// </summary>
        public int Care0 { get; set; }
        /// <summary>
        /// 一级护理天数
        /// </summary>
        public int Care1 { get; set; }
        /// <summary>
        /// 二级护理天数
        /// </summary>
        public int Care2 { get; set; }
        /// <summary>
        /// 三级护理天数
        /// </summary>
        public int Care3 { get; set; }
        /// <summary>
        /// 离院方式
        /// </summary>
        public int OutWay { get; set; }
        /// <summary>
        /// 离院方式(机构名称)
        /// </summary>
        public string OutWay_Dept { get; set; }

        /// <summary>
        /// 是否有出院31天内再住院计划
        /// </summary>
        public int OutAgainType { get; set; }
        /// <summary>
        /// 是否有出院31天内再住院计划（目的）
        /// </summary>
        public string OutAgainType_Memo { get; set; }

      
        /// <summary>
        /// 病案质量
        /// </summary>
        public string BAZL { get; set; }

        /// <summary>
        /// 质控日期
        /// </summary>
        public DateTime ZKRQ { get; set; }
        /// <summary>
        /// 重症监护信息列表
        /// </summary>
        [MaxLength(4000)]
        public string ICU_Json { get; set; }
        /// <summary>
        /// 输血信息列表
        /// </summary>
        [MaxLength(4000)]
        public string Blood_Json { get; set; }
        /// <summary>
        /// 颅脑损伤患者昏迷入院前时间：天
        /// </summary>
        public int RYQ_T { get; set; }
        /// <summary>
        /// 颅脑损伤患者昏迷入院前时间：小时
        /// </summary>
        public int RYQ_XS { get; set; }
        /// <summary>
        /// 颅脑损伤患者昏迷入院前时间：分钟
        /// </summary>
        public int RYQ_FZ { get; set; }
        /// <summary>
        /// 颅脑损伤患者昏迷入院前时间：天
        /// </summary>
        public int RYH_T { get; set; }
        /// <summary>
        /// 颅脑损伤患者昏迷入院前时间：小时
        /// </summary>
        public int RYH_XS { get; set; }
        /// <summary>
        /// 颅脑损伤患者昏迷入院前时间：分钟
        /// </summary>
        public int RYH_FZ { get; set; }
    }
}
